﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000427 RID: 1063
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ELEMDJILILM : IMessage<ELEMDJILILM>, IMessage, IEquatable<ELEMDJILILM>, IDeepCloneable<ELEMDJILILM>, IBufferMessage
	{
		// Token: 0x17000DB3 RID: 3507
		// (get) Token: 0x06002FC4 RID: 12228 RVA: 0x00083F54 File Offset: 0x00082154
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ELEMDJILILM> Parser
		{
			get
			{
				return ELEMDJILILM._parser;
			}
		}

		// Token: 0x17000DB4 RID: 3508
		// (get) Token: 0x06002FC5 RID: 12229 RVA: 0x00083F5B File Offset: 0x0008215B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ELEMDJILILMReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000DB5 RID: 3509
		// (get) Token: 0x06002FC6 RID: 12230 RVA: 0x00083F6D File Offset: 0x0008216D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ELEMDJILILM.Descriptor;
			}
		}

		// Token: 0x06002FC7 RID: 12231 RVA: 0x00083F74 File Offset: 0x00082174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ELEMDJILILM()
		{
		}

		// Token: 0x06002FC8 RID: 12232 RVA: 0x00083F7C File Offset: 0x0008217C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ELEMDJILILM(ELEMDJILILM other) : this()
		{
			this.queuePosition_ = other.queuePosition_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002FC9 RID: 12233 RVA: 0x00083FAD File Offset: 0x000821AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ELEMDJILILM Clone()
		{
			return new ELEMDJILILM(this);
		}

		// Token: 0x17000DB6 RID: 3510
		// (get) Token: 0x06002FCA RID: 12234 RVA: 0x00083FB5 File Offset: 0x000821B5
		// (set) Token: 0x06002FCB RID: 12235 RVA: 0x00083FBD File Offset: 0x000821BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint QueuePosition
		{
			get
			{
				return this.queuePosition_;
			}
			set
			{
				this.queuePosition_ = value;
			}
		}

		// Token: 0x17000DB7 RID: 3511
		// (get) Token: 0x06002FCC RID: 12236 RVA: 0x00083FC6 File Offset: 0x000821C6
		// (set) Token: 0x06002FCD RID: 12237 RVA: 0x00083FCE File Offset: 0x000821CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x06002FCE RID: 12238 RVA: 0x00083FD7 File Offset: 0x000821D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ELEMDJILILM);
		}

		// Token: 0x06002FCF RID: 12239 RVA: 0x00083FE5 File Offset: 0x000821E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ELEMDJILILM other)
		{
			return other != null && (other == this || (this.QueuePosition == other.QueuePosition && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002FD0 RID: 12240 RVA: 0x00084024 File Offset: 0x00082224
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.QueuePosition != 0U)
			{
				num ^= this.QueuePosition.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002FD1 RID: 12241 RVA: 0x0008407C File Offset: 0x0008227C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002FD2 RID: 12242 RVA: 0x00084084 File Offset: 0x00082284
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002FD3 RID: 12243 RVA: 0x00084090 File Offset: 0x00082290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.QueuePosition != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.QueuePosition);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002FD4 RID: 12244 RVA: 0x000840E8 File Offset: 0x000822E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.QueuePosition != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.QueuePosition);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002FD5 RID: 12245 RVA: 0x00084140 File Offset: 0x00082340
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ELEMDJILILM other)
		{
			if (other == null)
			{
				return;
			}
			if (other.QueuePosition != 0U)
			{
				this.QueuePosition = other.QueuePosition;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002FD6 RID: 12246 RVA: 0x00084190 File Offset: 0x00082390
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002FD7 RID: 12247 RVA: 0x0008419C File Offset: 0x0008239C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Level = input.ReadUInt32();
					}
				}
				else
				{
					this.QueuePosition = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040012E4 RID: 4836
		private static readonly MessageParser<ELEMDJILILM> _parser = new MessageParser<ELEMDJILILM>(() => new ELEMDJILILM());

		// Token: 0x040012E5 RID: 4837
		private UnknownFieldSet _unknownFields;

		// Token: 0x040012E6 RID: 4838
		public const int QueuePositionFieldNumber = 1;

		// Token: 0x040012E7 RID: 4839
		private uint queuePosition_;

		// Token: 0x040012E8 RID: 4840
		public const int LevelFieldNumber = 15;

		// Token: 0x040012E9 RID: 4841
		private uint level_;
	}
}
